package com.spring.aop;

import com.sun.activation.registries.MailcapParseException;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Map;

/**
 * Created by dong peng on 2018/1/6.
 */
public class TestMain {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-aop.xml");
        AopTarget aopTarget = (AopTarget) context.getBean("aopTarget");
//        aopTarget.sayHello();

        Map result = aopTarget.sayAnnotation();
        System.out.println("结果： "+ result);
    }
}
